Added gtk_entry_completion_new_with_area()
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 13 Dec 2010 06:58:07 +0000 (15:58 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 13 Dec 2010 06:58:07 +0000 (15:58 +0900)
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
gtk/gtkentrycompletion.c
gtk/gtkentrycompletion.h

index dbe4e423e8b06f1501a365b0a1b916280b9b7b80..5702bdb406a7b6861fda82f7bc1ae9e02e472b47 100644 (file)
@@ -1119,6 +1119,7 @@ gtk_entry_buffer_get_type
 GtkEntryCompletion
 GtkEntryCompletionMatchFunc
 gtk_entry_completion_new
+gtk_entry_completion_new_with_area
 gtk_entry_completion_get_entry
 gtk_entry_completion_set_model
 gtk_entry_completion_get_model
index ce41e59b0eca5be2087302ed87851c402c93cb6c..b7c384bd771c062e0bdf0e73a281683c1a3bbe41 100644 (file)
@@ -798,6 +798,7 @@ gtk_entry_completion_insert_action_markup
 gtk_entry_completion_insert_action_text
 gtk_entry_completion_insert_prefix
 gtk_entry_completion_new
+gtk_entry_completion_new_with_area
 gtk_entry_completion_set_inline_completion
 gtk_entry_completion_set_inline_selection
 gtk_entry_completion_set_match_func
index 36247dde0f83da20c23215bc8f95e6fbbb0e7e54..0808c1059f4e396e4609c642e0410158b991b64a 100644 (file)
@@ -995,6 +995,28 @@ gtk_entry_completion_new (void)
   return completion;
 }
 
+/**
+ * gtk_entry_completion_new_with_area:
+ * @area: the #GtkCellArea used to layout cells
+ *
+ * Creates a new #GtkEntryCompletion object using the
+ * specified @area to layout cells in the underlying 
+ * #GtkTreeViewColumn for the drop-down menu.
+ *
+ * Return value: A newly created #GtkEntryCompletion object.
+ *
+ * Since: 3.0
+ */
+GtkEntryCompletion *
+gtk_entry_completion_new_with_area (GtkCellArea *area)
+{
+  GtkEntryCompletion *completion;
+
+  completion = g_object_new (GTK_TYPE_ENTRY_COMPLETION, "cell-area", area, NULL);
+
+  return completion;
+}
+
 /**
  * gtk_entry_completion_get_entry:
  * @completion: A #GtkEntryCompletion.
index f120c3a67945b92ca3a4b8668eed2c448ebbb0cb..a5ba4226c9b750843ed57cde9800e59d8dc0258b 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <gtk/gtktreemodel.h>
 #include <gtk/gtkliststore.h>
+#include <gtk/gtkcellarea.h>
 #include <gtk/gtktreeviewcolumn.h>
 #include <gtk/gtktreemodelfilter.h>
 
@@ -81,6 +82,7 @@ struct _GtkEntryCompletionClass
 /* core */
 GType               gtk_entry_completion_get_type               (void) G_GNUC_CONST;
 GtkEntryCompletion *gtk_entry_completion_new                    (void);
+GtkEntryCompletion *gtk_entry_completion_new_with_area          (GtkCellArea                 *area);
 
 GtkWidget          *gtk_entry_completion_get_entry              (GtkEntryCompletion          *completion);